/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class FreshAirVentilator {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010030029';
    }

    get categoryName() {
        return '\u65b0\u98ce\u673a';
    }

    getAirTemperature(params) {
        return command({
            method: 'getAirTemperature',
            methodId: 'pGoxHGMK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHumidity(params) {
        return command({
            method: 'getHumidity',
            methodId: 'pDrhF8b5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pZgRT3wM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pgh0mcLm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'p1vFjxWl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAirTemperature(params) {
        return command({
            method: 'setAirTemperature',
            methodId: 'ppAXIS29',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pUPQ8Vin',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3nLuE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default FreshAirVentilator;
